package hcn.protocol.ods.casehistory;

import ctd.util.exp.standard.IN;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @auther: zhengcb10708
 * @Description 物流状态枚举
 * @date: 2024/1/17 16:52
 */
@NoArgsConstructor
@AllArgsConstructor
public enum BLExpressDeliveryStatusEnum {

    UNSENT("0","未寄出"),
    HAVE_BEEN_SENT("1","已寄出"),
    ORDER_IN_PROGRESS("2","正在下单中"),
    CONFIRM_RECEIPT_OF_GOODS("3","确认收货");

    private String code;
    private String description;

    public static final BLExpressDeliveryStatusEnum getDescription(String code){
        for (BLExpressDeliveryStatusEnum type : BLExpressDeliveryStatusEnum.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
